//
//  UIView+MyCategory.m
//  AssetManagement
//
//  Created by zeng on 16/12/30.
//  Copyright © 2016年 zeng. All rights reserved.
//

#import "UIView+MyCategory.h"

@implementation UIView (MyCategory)

- (void)setCornerRadius:(CGFloat)cornerRadius {
    self.layer.cornerRadius = cornerRadius;
    self.layer.masksToBounds = YES;
}

- (void)setBorderColor:(UIColor *)borderColor {
    if (!borderColor) return;
    self.layer.borderColor = borderColor.CGColor;
}

- (void)setBorderWidth:(CGFloat)borderWidth {
    self.layer.borderWidth = borderWidth;
}

@end
